package com.project.bean;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 供应商实体类
 */
@TableName("t_supplier")
@ExcelTarget("supplier")
@ApiModel(value = "供应商实体类", description = "封装供应商相关属性")
public class SupplierBean {
    /**
     * 供应商编号
     */
    @TableId(value = "pk_supplierId", type = IdType.AUTO)
    @ApiModelProperty("供应商编号")
    private Integer supplierId;
    /**
     * 供应商名称
     */
    @TableField("s_sName")
    @Excel(name = "供应商名称")
    @ApiModelProperty("供应商名称")
    private String sName;
    /**
     * 供应商地址
     */
    @TableField("s_sAddr")
    @Excel(name = "供应商地址")
    @ApiModelProperty("供应商地址")
    private String sAddr;
    /**
     * 供应商经营范围
     */
    @TableField("s_sRange")
    @Excel(name = "经营范围")
    @ApiModelProperty("经营范围")
    private String sRange;
    /**
     * 供应商负责人
     */
    @TableField("s_sLeader")
    @Excel(name = "负责人")
    @ApiModelProperty("负责人")
    private String sLeader;
    /**
     * 供应商负责人电话
     */
    @TableField("s_sLeaderPhone")
    @Excel(name = "负责人电话")
    @ApiModelProperty("负责人电话")
    private String sLeaderPhone;

    public SupplierBean() {
    }

    public SupplierBean(String sName, String sAddr, String sRange, String sLeader, String sLeaderPhone) {
        this.sName = sName;
        this.sAddr = sAddr;
        this.sRange = sRange;
        this.sLeader = sLeader;
        this.sLeaderPhone = sLeaderPhone;
    }

    public Integer getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Integer supplierId) {
        this.supplierId = supplierId;
    }

    public String getsName() {
        return sName;
    }

    public void setsName(String sName) {
        this.sName = sName;
    }

    public String getsAddr() {
        return sAddr;
    }

    public void setsAddr(String sAddr) {
        this.sAddr = sAddr;
    }

    public String getsRange() {
        return sRange;
    }

    public void setsRange(String sRange) {
        this.sRange = sRange;
    }

    public String getsLeader() {
        return sLeader;
    }

    public void setsLeader(String sLeader) {
        this.sLeader = sLeader;
    }

    public String getsLeaderPhone() {
        return sLeaderPhone;
    }

    public void setsLeaderPhone(String sLeaderPhone) {
        this.sLeaderPhone = sLeaderPhone;
    }

    @Override
    public String toString() {
        return "SupplierBean{" +
                "supplierId=" + supplierId +
                ", sName='" + sName + '\'' +
                ", sAddr='" + sAddr + '\'' +
                ", sRange='" + sRange + '\'' +
                ", sLeader='" + sLeader + '\'' +
                ", sLeaderPhone='" + sLeaderPhone + '\'' +
                '}' + "\n";
    }
}

